package com.stu.boke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.stu.boke.entity.Notice;

@Mapper
public interface NoticeMapper {

	Integer countNotice(@Param(value = "status") Integer status);
	
	void updateByPrimaryKey(Notice notice);
	
	void insert(Notice notice);
	
	void deleteById(Integer id);
	
	Notice getNoticeById(Integer id);

	void update(Notice notice);

	List<Notice> listNotice(@Param(value = "status") Integer status);
}
